home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Nothing / Sources / Part.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.8 KB  |  102 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Part.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef PART_H
  11. #include "Part.h"
  12. #endif
  13.  
  14. #ifndef FRAME_H
  15. #include "Frame.h"
  16. #endif
  17.  
  18. #ifndef DEFINES_K
  19. #include "Defines.k"
  20. #endif
  21.  
  22. #ifndef BINDING_K
  23. #include "Binding.k"
  24. #endif
  25.  
  26. // ----- Framework Includes -----
  27.  
  28. #ifndef FWUTIL_H
  29. #include "FWUtil.h"
  30. #endif
  31.  
  32. #ifndef FWCFMRES_H
  33. #include "FWCFMRes.h"
  34. #endif
  35.  
  36. //========================================================================================
  37. //    Runtime informations
  38. //========================================================================================
  39.  
  40. #ifdef FW_BUILD_MAC
  41. #pragma segment odfnothing
  42. #endif
  43.  
  44. //========================================================================================
  45. //    CLASS CNothingPart
  46. //========================================================================================
  47.  
  48.  
  49. FW_DEFINE_AUTO(CNothingPart)
  50.     
  51. //----------------------------------------------------------------------------------------
  52. //     CNothingPart::CNothingPart
  53. //----------------------------------------------------------------------------------------
  54.  
  55. CNothingPart::CNothingPart(ODPart* odPart):
  56.     FW_CPart(odPart, FW_gInstance, kPartInfoID)
  57. {
  58. }
  59.  
  60. //----------------------------------------------------------------------------------------
  61. //     CNothingPart::~CNothingPart
  62. //----------------------------------------------------------------------------------------
  63.  
  64. CNothingPart::~CNothingPart()
  65. {
  66. }
  67.  
  68. //----------------------------------------------------------------------------------------
  69. //     CNothingPart::Initialize
  70. //----------------------------------------------------------------------------------------
  71.  
  72. void CNothingPart::Initialize(Environment* ev)
  73. {
  74.     FW_CPart::Initialize(ev);
  75.     
  76.     RegisterPresentation(ev, "Apple:Presentation:ODFNothing", TRUE);
  77. }
  78.  
  79. //----------------------------------------------------------------------------------------
  80. //     CNothingPart::NewFrame
  81. //----------------------------------------------------------------------------------------
  82.  
  83. FW_CFrame* CNothingPart::NewFrame(Environment* ev, 
  84.                                   ODFrame* odFrame, 
  85.                                   FW_CPresentation* presentation, 
  86.                                   FW_Boolean fromStorage)
  87. {
  88. FW_UNUSED(presentation);
  89. FW_UNUSED(fromStorage);
  90.     
  91.     return FW_NEW(CNothingFrame, (ev, odFrame, presentation, this));
  92. }
  93.  
  94. //----------------------------------------------------------------------------------------
  95. //     CNothingPart::NewPartContent
  96. //----------------------------------------------------------------------------------------
  97.  
  98. FW_CContent* CNothingPart::NewPartContent(Environment* ev)
  99. {
  100.     return NULL;
  101. }
  102.